import triangler
# Create Triangler instance
triangler_instance = triangler.Triangler(
    # 具体参数可以自定义👇
    # edge_method=EdgeMethod.SOBEL,
    # sample_method=SampleMethod.THRESHOLD,
    # color_method=ColorMethod.CENTROID,
    points=5000,
    blur=2,
    pyramid_reduce=True,
)
# 输入图片路径 + 输出图片路径
triangler_instance.convert_and_save("./pearl.jpeg",\
     "./DT_Pearl.jpeg")
